import request from '@/nx/request';

export default {
  // 获取机构名单list
  getOrgList: (data)=>request({
    url: '/crm/organization/list',
    method: 'GET',
    data
  }),
  // 添加机构
  addOrganization: (data) =>request({
    url: '/crm/organization',
    method: 'POST',
    data
  }),
  // 机构详情
  getOrgDetail: (data)=>request({
    url: '/crm/organization/detail',
    method: 'GET',
    data
  }),
  // 机构类型
  getOrgCat: ()=> request({
    url:'/crm/organization/category',
    method:'GET'
  }),
  // 机构状态
  getOrgStatus: ()=>request({
    url:'/crm/organization/status',
    method:'GET'
  })
}